package com.zqwh.xtool.api.online;

import com.zqwh.yj.sdk.utils.httpRequest.beans.HttpResult2;
import com.zqwh.xtool.domain.CheckInfo;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by eason.yang on 2018/1/19.
 */
public interface CheckOrderApi {
    /**
     * 提交检查单
     * @return
     */
    @POST("checkorder/submit")
    @FormUrlEncoded
    Observable<HttpResult2<Object>> submitCheckOrder(@Header("Authorization") String token,
                                                     @Field("devId") Long devId,
                                                     @Field("orderNo") String orderNo,
                                                     @Field("epcs") String epcs,
                                                     @Field("toolIds") String toolIds);

    /**
     * 检查单预提交
     * @return
     */
    @POST("checkorder/pre-submit")
    @FormUrlEncoded
    Observable<HttpResult2<CheckInfo>> preSubmit(@Header("Authorization") String token,
                                                 @Field("devId") Long devId,
                                                 @Field("epcs") String epcs);
}
